package com.he.eduservice.service;

import com.he.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.he.eduservice.entity.course.CourseInfoForm;
import com.he.eduservice.entity.course.CoursePublishVo;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author testhejinyu
 * @since 2021-06-02
 */
public interface EduCourseService extends IService<EduCourse> {

    String addCourse(CourseInfoForm data);

    CourseInfoForm findCourseInfoByCourseId(String courseId);

    void updateCourseInfoById(CourseInfoForm data);

    /**
     * 最终发布课程
     * @param id
     * @return
     */
    CoursePublishVo selectCoursePublishVoById(String id);

    boolean publishCourseById(String id);

    List<EduCourse> findCourseList();
}
